<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
	prefix="tiles"%>

<rich:panel header="#{messages['rci.split.week.maintenance.menu']}">
	<h:panelGrid width="100%" columns="1">
		<h:panelGroup>
			<h:panelGrid>
				<h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText>
			</h:panelGrid>		
		</h:panelGroup>
		
		<h:panelGroup>
			<h:panelGrid width="100%">
				<h:panelGroup>
				    <h:outputText value="#{messages['rci.split.week']}" styleClass="sub_header" />
					<h:outputText value="*" styleClass="standardText_Mandatory" />
					<h:outputText value="#{messages['instruction']}" styleClass="standardText_Instruction" />
				</h:panelGroup>
			</h:panelGrid>
		</h:panelGroup>
		
	</h:panelGrid>
	
	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
		<h:outputText></h:outputText>
		<t:message for="rciSplitWeekDesc" styleClass="error"></t:message>
		<h:panelGroup>
			<h:outputText value="*" styleClass="standardText_Mandatory" />
			<h:outputLabel for="rciSplitWeekDesc" value="#{messages['rci.split.week.desc']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:inputText id="rciSplitWeekDesc" size="50" maxlength="50" required="true" styleClass="standardText" value="#{adminRCIBean.rciSplitWeekConfig.rciSplitWeekDesc}"></t:inputText>
		
		<h:outputText></h:outputText>
		<t:message for="noOfNight" styleClass="error"></t:message>
		<h:panelGroup>
			<h:outputText value="*" styleClass="standardText_Mandatory" />
			<h:outputLabel for="noOfNight" value="#{messages['no.of.night']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:inputText id="noOfNight" size="2" maxlength="2" required="true" styleClass="standardText" value="#{adminRCIBean.rciSplitWeekConfig.noOfNight}"></t:inputText>
		
		<h:outputText></h:outputText>
		<t:message for="checkInDay" styleClass="error"></t:message>
		<h:panelGroup>
			<h:outputText value="*" styleClass="standardText_Mandatory" />
			<h:outputLabel for="checkInDay" value="#{messages['check.in.day']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:selectOneMenu id="checkInDay" styleClass="standardText" value="#{adminRCIBean.rciSplitWeekConfig.checkInDay}" required="true">
				<f:selectItem itemLabel="#{messages['please.select']}" itemValue="" />
				<f:selectItems value="#{adminRCIBean.selectDays}"/>
			</t:selectOneMenu>
		</h:panelGroup>
		
		<rich:spacer height="10"></rich:spacer>
		
		<t:panelGroup>
		   <t:panelGrid columns="2">
		   		<h:commandButton value="#{messages['update']}" styleClass="button" action="#{adminRCIBean.updateRCISplitWeekConfigAction}" actionListener="#{adminRCIBean.updateRCISplitWeekConfigActionListener}"></h:commandButton>
			    <h:commandButton value="#{messages['back']}" styleClass="button" action="#{adminRCIBean.initRCISplitWeekConfigAction}" actionListener="#{adminRCIBean.initRCISplitWeekConfigActionListener}" immediate="true"></h:commandButton>
		   </t:panelGrid>
		</t:panelGroup>
	</t:panelGrid>
</rich:panel>	